
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import axios from 'axios'
import { QuillEditor } from '@vueup/vue-quill'; // 引入富文本编辑器
// 富文本样式
import '@vueup/vue-quill/dist/vue-quill.snow.css'
const app = createApp(App)
app.use(ElementPlus, { locale: zhCn })
app.use(createPinia())
axios.defaults.baseURL = 'http://localhost:8099'; // 替换为你的后端地址
app.config.globalProperties.$axios = axios
app.use(router)
// 挂载富文本组件
app.component(QuillEditor)
app.mount('#app')
